﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Wix.Aura.Common;
using Wix.Aura.UnitTests.Tools;

namespace Wix.Aura.UnitTests.Common {
	[TestFixture]
	public class ComponentConditionSerialization {
		[Test]
		public void EmptyCondition() {
			ComponentCondition condition = new ComponentCondition();
			XmlAssert.AreEqual("<Condition />", condition);
		}

		[Test]
		public void ConditionWithValue() {
			ComponentCondition condition = new ComponentCondition();
			condition.Condition = "if then else";
			XmlAssert.AreEqual("<Condition>if then else</Condition>", condition);
		}
	}
}
